import http from '@/utils/request.js'

export default {
    captcha: {
        name: '获取验证码',
        url: `${import.meta.env.VITE_API_URL}/auth/captcha`,
        async get (data) {
            return await http.get(this.url, data)
        }
    },

    loginAdmin: {
        name: '登录',
        url: `${import.meta.env.VITE_API_URL}/auth/login/admin`,
        async post (data) {
            return await http.post(this.url, data)
        }
    },

}